useState not working - wanting to keep track of two variables

welcome to shbcf.ru